/*
 * COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2019.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen JiMi Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * 2019年1月22日    Wangsiwei         Create the class
 * http://www.jimilab.com/
*/

package com.futuremap.ws.ex;

/**
 * @FileName APIExceptionEnum.java
 * @Description: 
 *
 * @Date 2019年1月22日 下午4:27:45
 * @author Wangsiwei
 * @version 1.0
 */
public enum APIExceptionEnum {
    
    GATE_SERVER_INFO_NOT_FOUND(10001, "未找到上报的RTMP网关讯息."),
    ICE_SERVER_INFO_NOT_FOUND(10002,"未找到上报的ICE服务器讯息."),
    WEB_RTC_GATE_SERVER_INFO_NOT_FOUND(10003,"未找到上报的webRTC信令网关讯息."),
    SECRET_KEY_NOT_FOUND(10004, "未找到对应的devKey."),
    HTTP_REQUEST_EXCEPTION(10005, "发送http请求异常."),
    PERMISSION_AUTH_FAILED(10006, "权限不足"),
    TOKEN_INVALID(10007,"token校验失败"),
    REQUEST_PARAM_IS_NULL(10008,"传入参数为空"),
    REQUEST_PARAM_EVENT_URL_FAMATTER_WRONG(10009, "事件服务器url上报格式错误.")
    ;
    
    private int code;
    private String msg;
    
    
    APIExceptionEnum(int code, String msg){
        this.msg = msg;
        this.code = code;
    }

    public int getCode() {
        return code;
    }


    public String getMsg() {
        return msg;
    }
    
    
}
